package domijn;

import java.util.ArrayList;

import daoDataFactory.DaoFactory;

public class Consumptie {

	private Menu menu;
	private Categorie categorie;
	private Gerecht gerecht;
    private Drank drank;
    private ArrayList<Gerecht>gerechten;
    private ArrayList<Drank>dranken;
	
    public Consumptie(Menu m, Categorie c, Gerecht g, Drank d){
         this.menu = m;
         this.categorie = c;
         this.gerecht = g;
         this.drank = d;
         gerechten = new ArrayList<Gerecht>();
         dranken= new ArrayList<Drank>();
        }
        
        public Menu getMenu(){
            return menu;
        }
        public void setMenu(Menu m){
            menu = m;
        }
        public Categorie getCategorie(){
            return categorie;
        }
        public void setCategorie(Categorie c){
            categorie = c;
        }
        public Gerecht getGerecht(){
            return gerecht;
        }
        public void setGerecht(Gerecht g){
            gerecht = g;
        }
        public Drank getDrank(){
            return drank;
        }
        public void setDrank(Drank d){
            drank = d;
        }
        public ArrayList<Gerecht> getArGerecht(){
            return gerechten;
        }
        public void setArGerecht(ArrayList<Gerecht> g){
            gerechten = g;
        }
        public ArrayList<Drank> getArDrank(){
            return dranken;
        }
        public void setArDrank(ArrayList<Drank> d){
            dranken = d;
        }
        
		public void save() {
			DaoFactory.getwokapplicatie().getDaoIConsumtie().save(this);
			
		}

		public void loadgerechten() {
			DaoFactory.getwokapplicatie().getDaoIConsumtie().loadgerechten();
			
		}
        

}
